newBuilder

public static CreditCard.Builder newBuilder(String number, YearMonth expirationDate)

Creates a new CreditCard builder with the given required parameters.

Return

a new CreditCart.Builder instance

Since

8.0.0

Parameters

number

the card number, consisting solely of digits, with no separators

expirationDate

the expiration date

Throws

if the given number contains non-digit characters